﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
				 com.kylin.module.study.orm.Article
				 " %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
 
<%Article article = (Article)request.getAttribute(Constants.KEY_REQUEST_RESULT);%>
<br>
<mytag:MyActionMsg />
<html:form action="/admin/study/manageArticle.do?CMD=executeUpdate" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<%=article.getId()%>">
	<table width="90%" cellspacing="0" cellpadding="0">
		<tr>
			<td class='pageTd' width="100">
				母语
			</td>
			<td>
				<%=UTool.getLanguageName(article.getLanguage(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100"> 
				学习语言
			</td>
			<td>
				<%=UTool.getLanguageName(article.getTargetlang(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				所属分类
			</td>
			<td>
				<mytag:select name="catarticleid" notEmpty="true"
					dictName="<%=dict_cat_study3%>" value="<%=(article.getCatarticle().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章标题
			</td>
			<td>
				<html:text property="title" value="<%=article.getTitle() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章内容
			</td>
			<td>
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<FCK:editor id="content" basePath="/common/webeditor/"
		autoDetectLanguage="false"
		defaultLanguage="<%=JspHelper.getFCKLang("zh_CN") %>"
		imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=Image"
		linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
		flashUploadURL="/editor/filemanager/upload/simpleuploader?Type=Flash">
	<%=article.getContent() %>
</FCK:editor>
			</td>
		</tr>
		<tr>

			<td class='pageTd' width="100">
				语音上传
			</td>
			<td>
				<html:file property="audio" value="<%=article.getAudio()%>"/>
			<%
		        if(article.getAudio()!=null && !article.getAudio().equals("") ){
		    %>
		        <a target="_blank" href="/common/playMedia.jsp?fileType=<%=Constants.MEDIA_ARTICLE%>&fileUrl=<%=article.getAudio()%>&imgpath<%=article.getId()%>=<%=article.getAudio() %>">
		        	<img src="/images/lessonpic01.gif" width="13" height="13" stype="cursor:hand"/>
		        </a>
		    <%
		        }
		    %>			
			</td>
		</tr>
		<tr>
			<td colspan=2 align="center">
				<input type="submit" value="保存">
			</td>
		</tr>
	</table>
</html:form>
